ALL:server
OBJ=$(patsubst %.c,%.o,$(wildcard src/*.c *.c))
LIB=-lpthread -lm -lmysqlclient
server:$(OBJ)
	gcc -o $@ $^ $(LIB)
%.o:%.c
	gcc -o $@ -c $< -g
.PHONY:clean
clean:
	rm $(OBJ) server 
